/*------------------------------------------------------------------------------
 * PROJ : Prototype
 * NAME : sculove.spring.framework.model.PageIndexDTO.java
 *        
 * Copyright 2010 sculove All rights reserved
 *------------------------------------------------------------------------------
*/
package sculove.spring.framework.model;
/**
 * <pre>
 * sculove.spring.framework.model.PageIndexDTO.java
 * 
 * 페이징 설정관련 DTO
 * 
 * </pre>
 * @date : 2010. 1. 6. 오후 5:47:45
 * @version :
 * @author : sculove
 */
public class PageIndexDTO {

    private int currentPage;

    private int recordCntPerPage;

    private int pageCntPerNavigation;

    private int totalRecord;

    public PageIndexDTO(int currentPage, int recordCntPerPage) {
        super();
        this.currentPage = currentPage;
        this.recordCntPerPage = recordCntPerPage;
        //this.pageCntPerNavigation = pageCntPerNavigation;
    }

    public int getStartRecord(){
        return ((currentPage - 1) * recordCntPerPage);
    }

    public int getEndRecord(){
        return (currentPage * recordCntPerPage);
    }

    public int getCurrentPage(){
        return this.currentPage;
    }

    public int getTotalRecord(){
        return this.totalRecord;
    }

    public void setTotalRecord(int totalRecord){
        this.totalRecord = totalRecord;
    }

    public void makeNavigation(){
    }
}
